package com.yibo.user;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 2538970366@qq.com
 *
 * 如果想要对user服务进行健康检查，可以访问http://localhost:9100/actuator/hystrix.stream
 *
 * 将http://localhost:9100/actuator/hystrix.stream 地址复制到hystrix dashboard主页上(
 * http://localhost:8005/hystrix) 搜索即可
 */
@EnableEurekaClient //eureka客户端
@SpringBootApplication(scanBasePackages = {"com.yibo"})
@MapperScan(annotationClass = Mapper.class,basePackages = "com.yibo") //mapper扫描
@EnableFeignClients(basePackages = "com.yibo")  //feign启动
@EnableCircuitBreaker //熔断器的支持
public class YBUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(YBUserApplication.class,args);
    }
}
